package com.elm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.elm.po.User;

@Mapper
public interface UserMapper {

	User getUserByIdByPass(String userId, String password);

	@Select("select * from user where userId=#{userId}")
	User getUserById(String userId);

	int createUser(User user);

	 int updateUser(User user);

	int updatePassword(String userId, String newpassword);

	int updateUserStatus(String targetUserId);
	
	int addStaff(String staffUserId,Integer businessId);
	
	int deleteStaff(String staffUserId, Integer businessId);

	List<User> getAllStaff(Integer businessId);

	
 
}
